﻿// ע�

using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XT.Sql.Models;

namespace IotServerService.Entities;
/// <summary>
/// 采集设备点位表
/// </summary>
[SugarTable("net_equip_tag_iot", TableDescription = "采集设备点位表")]
public class EquipTag : EntityBase
{
    /// <summary>
    /// 名称
    /// </summary>
    [SugarColumn(ColumnDescription = "名称", IsNullable = true, Length = 50)]
    public string Name { get; set; }
    /// <summary>
    /// 点位编号
    /// </summary>
    [SugarColumn(ColumnDescription = "点位编号", IsNullable = true, Length = 50)]
    public string TagNum { get; set; }
    /// <summary>
    /// 编号属性
    /// </summary>
    [SugarColumn(ColumnDescription = "编号属性", IsNullable = true, Length = 50)]
    public string TagProperty { get; set; }
    /// <summary>
    /// 地址
    /// </summary>
    [SugarColumn(ColumnDescription = "地址", IsNullable = true, Length = 50)]
    public string Address { get; set; }
    /// <summary>
    /// 数据类型
    /// </summary>
    [SugarColumn(ColumnDescription = "数据类型", IsNullable = true)]
    public int DataType { get; set; }
    /// <summary>
    /// 数据长度
    /// </summary>
    [SugarColumn(ColumnDescription = "数据长度", IsNullable = true)]
    public int DataLength { get; set; }

    /// <summary>
    /// 设备id
    /// </summary>
    [SugarColumn(ColumnDescription = "设备Id", IsNullable = true)]
    public long EquipInfoId { get; set; }
    /// <summary>
    /// 读写
    /// </summary>
    [SugarColumn(ColumnDescription = "读写", IsNullable = true)]
    public int ReadWrite { get; set; }


    /// <summary>
    /// 读取块
    /// </summary>
    [SugarColumn(ColumnDescription = "读取块", IsNullable = true, Length = 50)]
    public string ReadBlock { get; set; }
    /// <summary>
    /// 是否启用
    /// </summary>
    [SugarColumn(ColumnDescription = "是否启用", IsNullable = true)]
    public int IsEnable { get; set; }
    /// <summary>
    /// 表达式
    /// </summary>
    [SugarColumn(ColumnDescription = "表达式", IsNullable = true, Length = 500)]
    public string Expression { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    [SugarColumn(ColumnDescription = "备注", IsNullable = true, Length = 90)]
    public string Remark { get; set; }

    /// <summary>
    /// 是否Mqtt发布
    /// </summary>
    [SugarColumn(ColumnDescription = "Mqtt发布", IsNullable = true, Length = 10)]
    public int IsMqttPublish { get; set; }



}
